﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CreateOrUpdateDepartInfo.aspx.cs"
    MasterPageFile="~/RightFrame.Master" Inherits="MyOA.UI.PersonManage.CreateOrUpdateDepartInfo" %>

<asp:Content ContentPlaceHolderID="cphTitle" ID="cphTitle" runat="server">
    您的位置：部门信息
</asp:Content>
<asp:Content ContentPlaceHolderID="cphContnent" ID="cphContnent" runat="server">

    <script type="text/javascript" language="javascript">
        var Alert=ymPrompt.alert;
        var Error = ymPrompt.errorInfo;
        function href() {
            document.location.href = "DepartManage.aspx";
        }
    </script>

    <br />
    <div style="text-align: center; font-size:large;">
        操&nbsp;&nbsp;作&nbsp;&nbsp;部&nbsp;&nbsp;门&nbsp;&nbsp;信&nbsp;&nbsp;息</div>
    <br />
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div align="center" id="divContent">
                <asp:Panel ID="pnlDepartInfo" runat="server" Width="65%" BorderWidth="1px" BorderColor="#66CCFF"
                    Height="229px">
                    <br /><br />
                    &nbsp;部门名称：&nbsp;
                    <asp:TextBox ID="txtDepartName" runat="server" Width="157px" Style="margin-bottom: 0px"></asp:TextBox><asp:RequiredFieldValidator
                        ID="RequiredFieldValidator1" runat="server" ErrorMessage="部门信息不能为空" ControlToValidate="txtDepartName"></asp:RequiredFieldValidator>
                    <br />
                    <br />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 所属单位：&nbsp;&nbsp;
                    <asp:DropDownList ID="ddlBranchInfo" runat="server" CssClass="ddlCss" Style="position: relative;
                        top: 1px; " Width="161px">
                    </asp:DropDownList>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <br />
                    <br />
                    部门电话： &nbsp;<asp:TextBox ID="txtDepartPhone" runat="server" Width="157px"></asp:TextBox>&nbsp;
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="电话格式不正确"
                        ControlToValidate="txtDepartPhone" ValidationExpression="(\(\d{3}\)|\d{3}-)?\d{8}"></asp:RegularExpressionValidator>
                    <br />
                    <br />
                    部门Email：&nbsp;<asp:TextBox type="TextBox" ID="txtDepartEmail" runat="server" Width="157px"
                        Style="margin-left: 0px"></asp:TextBox><asp:RegularExpressionValidator ID="RegularExpressionValidator2"
                            runat="server" ErrorMessage="Email格式不正确" EnableViewState="False" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                            ControlToValidate="txtDepartEmail"></asp:RegularExpressionValidator>
                    <br />
                    <br />
                    <asp:Button ID="btnAdd" runat="server" Text="保存" CssClass="btn" onMouseOver="document.getElementById(this.id).className='btnOver'"
                        onMouseOut="document.getElementById(this.id).className='btnOut'" OnClick="btnAdd_Click" />
                    &nbsp;
                    <asp:Button ID="Button1" runat="server" Text="全部重写" CssClass="btn" onMouseOver="document.getElementById(this.id).className='btnOver'"
                        onMouseOut="document.getElementById(this.id).className='btnOut'" 
                        onclick="Button1_Click" CausesValidation="False" />
                    &nbsp;&nbsp;
                    <asp:Button ID="Button2" runat="server" Text="返回" CssClass="btn" onMouseOver="document.getElementById(this.id).className='btnOver'"
                        onMouseOut="document.getElementById(this.id).className='btnOut'" 
                        OnClick="Button2_Click" CausesValidation="False" />
                </asp:Panel>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
